package com.zzz.service.impl;

import com.aaa.entity.GDeposit;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzz.service.GDepositService;
import com.zzz.mapper.GDepositMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86176
* @description 针对表【g_deposit(保存方式)】的数据库操作Service实现
* @createDate 2023-03-16 20:38:50
*/
@Service
public class GDepositServiceImpl extends ServiceImpl<GDepositMapper, GDeposit>
    implements GDepositService{

    @Autowired
    private GDepositMapper gDepositMapper;

    @Override
    public Result addDeposit(GDeposit deposit) {
        deposit.setIsDeleted(0);
        deposit.setStatus(2);
        int insert = gDepositMapper.insert(deposit);
        return new Result(2000,"添加成功",insert);
    }
}




